import Layout from '@/layout'

const Router = {
  path: '/warningComplaint',
  component: Layout,
  redirect: '/index',
  name: 'index',

  meta: {
    title: '预警与申述管理',
    icon: 'alarm-clock'
  },
  children: [{
      path: 'warning-list',
      component: () => import('@/views/warningComplaint/warningList/index'),
      name: 'warningList',
      meta: {
        title: '预警列表',
        noCache: true
      }
    },
    {
      path: 'warning-detail',
      component: () => import('@/views/warningComplaint/warningDetail/index'),
      name: 'warningDetail',
      meta: {
        title: '预警详情',
        noCache: true
      },
      hidden: true,
    },
    {
      path: 'warning-settings',
      component: () => import('@/views/warningComplaint/warningSettings/index'),
      name: 'warningSettings',
      meta: {
        title: '预警设置',
        noCache: true
      }
    },
  ]
}

export default Router
